public class RegexTest4 {
    public static void main(String[] args) {
        // 1、将刘德华sdf222asd刘亦菲34edas2刘大力akjrd322sd刘哈哈，中间的非中文替换成"-"
        String s1 = "刘德华sdf222asd刘亦菲34edas2刘大力akjrd322sd刘哈哈";
        System.out.println(s1.replaceAll("\\w+", "-"));
    }
}
